package com.qlzb.taskmanagement.persistentData.entity;



import com.qlzb.taskmanagement.vo.quartzVo.OperationColumnId;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 运维系统的站址信息
 */
@Entity(name = "oil_operation_station")
public class OperationStation extends BaseEntity {
    /**
     * 编码
     */

    @OperationColumnId(j_id =141,name = "站址编码")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '站址编码'")
    String code;
    /**
     *名称
     */
    @OperationColumnId(j_id =146,name = "站址名称")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '站址名称'")
    String name;
    /**
     * 运维id
     */

    @OperationColumnId(j_id =151,name = "运维ID")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '运维ID'")
    String operationId;
    /**
     * fus状态
     */

    @OperationColumnId(j_id =166,name = "站址状态")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '站址状态'")
    String fusStatus;
    /**
     *  所属区域
     */

    @OperationColumnId(j_id =215,name = "区县")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '区县'")
    String areaName;
    /**
     * 站址来源
     */

    @OperationColumnId(j_id =156,name = "站址来源")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '站址来源'")
    String stationSource;
    /**
    /**
     * 经度
     */
    @OperationColumnId(name = "经度(小数点后6位)")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '经度(小数点后6位)'")
    private String longitude;
    /**
     *纬度
     */
    @OperationColumnId(name = "纬度(小数点后6位)")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '纬度(小数点后6位)'")
    private String latitude;

    /**
     * 所属运营商
     * @return
     */
    @OperationColumnId(j_id =245,name = "运营商共享情况")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '运营商共享情况'")
    private String shareUnit;
    /**
     * 是否有效
     */
    @OperationColumnId(j_id =265)
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '是否有效'")
    private String isEffective;
    //站址地址
    @OperationColumnId(name = "地址")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '站址地址'")
    String addr;

    //移动发电服务
    @OperationColumnId(name = "移动公司是否购买发电服务")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '移动公司是否购买发电服务'")
    String cmcc_power;
    //联通发电服务
    @OperationColumnId(name = "联通公司是否购买发电服务")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '联通公司是否购买发电服务'")
    String cucc_power;
    //电信发电服务
    @OperationColumnId(name = "电信公司是否购买发电服务")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '电信公司是否购买发电服务'")
    String ctcc_power;
    //移动站址等级
    @OperationColumnId(name = "移动公司维护服务等级")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '移动公司维护服务等级'")
    String cmcc_level;
    //联通站址等级
    @OperationColumnId(name = "联通公司维护服务等级")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '联通公司维护服务等级'")
    String cucc_level;
    //电信站址等级
    @OperationColumnId(name = "电信公司维护服务等级")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '电信公司维护服务等级'")
    String ctcc_level;
    //蓄电池续航时间(分钟)
    @OperationColumnId(name = "蓄电池续航时间(分钟)")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '蓄电池续航时间(分钟)'")
    String batteryTime;
    @OperationColumnId(name="地市")
    @Column(name = "city_name",columnDefinition = "varchar(64) DEFAULT NULL Comment '地市'")
    String cityName;

    //产权性质
    @OperationColumnId(name = "产权性质")
    @Column(name = "property_right",columnDefinition = "varchar(64) DEFAULT NULL Comment '产权性质'")
    String propertyRight;

    //从驻点上站时长(分钟)
    @OperationColumnId(name = "从驻点上站时长(分钟)")
    @Column(name = "arrive_time",columnDefinition = "varchar(64) DEFAULT NULL Comment '从驻点上站时长(分钟)'")
    String arriveTime;

    //从驻点上站时长(分钟)
    @OperationColumnId(name = "是否固定油机")
    @Column(name = "is_oil",columnDefinition = "varchar(64) DEFAULT NULL Comment '是否固定油机'")
    String isOil;

    //从驻点上站时长(分钟)
    @OperationColumnId(name = "蓄电池基础保障时间(小时)")
    @Column(name = "is_security",columnDefinition = "varchar(64) DEFAULT NULL Comment '蓄电池基础保障时间(小时)'")
    String isSecurity;

    //负载电流平均值
    String loadCurrentDef;

    public String getPropertyRight() {
        return propertyRight;
    }

    public void setPropertyRight(String propertyRight) {
        this.propertyRight = propertyRight;
    }

    public String getArriveTime() {
        return arriveTime;
    }

    public void setArriveTime(String arriveTime) {
        this.arriveTime = arriveTime;
    }

    public String getIsOil() {
        return isOil;
    }

    public void setIsOil(String isOil) {
        this.isOil = isOil;
    }

    public String getIsSecurity() {
        return isSecurity;
    }

    public void setIsSecurity(String isSecurity) {
        this.isSecurity = isSecurity;
    }

    public String getLoadCurrentDef() {
        return loadCurrentDef;
    }

    public void setLoadCurrentDef(String loadCurrentDef) {
        this.loadCurrentDef = loadCurrentDef;
    }

    public String getCityName() {
        if(cityName==null){
            return null;
        }
        return cityName.replace("分公司", "");
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getBatteryTime() {
        return batteryTime;
    }

    public void setBatteryTime(String batteryTime) {
        this.batteryTime = batteryTime;
    }

    public String getCmcc_power() {
        return cmcc_power;
    }

    public void setCmcc_power(String cmcc_power) {
        this.cmcc_power = cmcc_power;
    }

    public String getCucc_power() {
        return cucc_power;
    }

    public void setCucc_power(String cucc_power) {
        this.cucc_power = cucc_power;
    }

    public String getCtcc_power() {
        return ctcc_power;
    }

    public void setCtcc_power(String ctcc_power) {
        this.ctcc_power = ctcc_power;
    }

    public String getCmcc_level() {
        return cmcc_level;
    }

    public void setCmcc_level(String cmcc_level) {
        this.cmcc_level = cmcc_level;
    }

    public String getCucc_level() {
        return cucc_level;
    }

    public void setCucc_level(String cucc_level) {
        this.cucc_level = cucc_level;
    }

    public String getCtcc_level() {
        return ctcc_level;
    }

    public void setCtcc_level(String ctcc_level) {
        this.ctcc_level = ctcc_level;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getIsEffective() {
        return isEffective;
    }

    public void setIsEffective(String isEffective) {
        this.isEffective = isEffective;
    }

    public String getShareUnit() {
        return shareUnit;
    }

    public void setShareUnit(String shareUnit) {
        this.shareUnit = shareUnit;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getStationSource() {
        return stationSource;
    }

    public void setStationSource(String stationSource) {
        this.stationSource = stationSource;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public String getFusStatus() {
        return fusStatus;
    }

    public void setFusStatus(String fusStatus) {
        this.fusStatus = fusStatus;
    }


}
